package cn.lizemin.flowable.controller;

import cn.lizemin.flowable.common.RespBean;
import cn.lizemin.flowable.entity.req.AskForLeaveReq;
import cn.lizemin.flowable.service.AskForLeaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lzm
 * @Date 2024/6/30
 * @description
 */
@RestController
public class AskForLeaveController {

    @Autowired
    AskForLeaveService askForLeaveService;

    @PostMapping("/askForLeave")
    public RespBean askForLeave(@RequestBody AskForLeaveReq askForLeaveReq) {
        askForLeaveService.askForLeave(askForLeaveReq);
        return RespBean.success();
    }


}
